home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-07 | 9.7 KB | 486 lines |
- #!/bin/make
- #
- # Copyright (c) 1994 David I. Bell and Landon Curt Noll
- # Permission is granted to use, distribute, or modify this source,
- # provided that this copyright notice remains intact.
- #
- # Arbitrary precision calculator.
- #
- # calculator by David I. Bell
- # Makefile by Steve Leblanc from original by Landon Curt Noll
-
- CCFLAGS= -O
- LDFLAGS= ND
- LNK_LIBS= LIB:lcm.lib LIB:lc.lib LIB:amiga.lib
- CC= lc
- LD= lk
-
- #
- # the source files which are built into a math library
- #
- LIBSRC = alloc.c comfunc.c commath.c qfunc.c qio.c qmath.c qmod.c qtrans.c \
- zfunc.c zio.c zmath.c zmod.c zmul.c
-
- #
- # the object files which are built into a math library
- #
- LIBOBJS = alloc.o comfunc.o commath.o qfunc.o qio.o qmath.o qmod.o qtrans.o \
- zfunc.o zio.o zmath.o zmod.o zmul.o
-
- #
- # the calculator source files
- #
- CALCSRC = addop.c assocfunc.c calc.c codegen.c config.c const.c file.c \
- func.c input.c label.c listfunc.c matfunc.c obj.c opcodes.c \
- string.c symbol.c token.c value.c version.c
-
- #
- # we build these .o files for calc
- #
- CALCOBJS = addop.o assocfunc.o calc.o codegen.o config.o const.o file.o \
- func.o input.o label.o listfunc.o matfunc.o obj.o opcodes.o \
- string.o symbol.o token.o value.o version.o
-
- # These were built by hand for the Amiga
- #
- BUILD_H_SRC= args.h config.h endian.h have_malloc.h have_stdlib.h \
- have_string.h longbits.h
-
- # these .h files are needed by programs that use libcalc.a
- #
- LIB_H_SRC= alloc.h args.h cmath.h endian.h have_malloc.h have_stdlib.h \
- have_string.h longbits.h qmath.h stdarg.h zmath.h
-
- # these .h files are neither built, nor required by libcalc.a
- #
- CALC_H_SRC= calc.h config.h func.h hist.h label.h opcodes.h stdarg.h \
- string.h symbol.h terminal.h token.h value.h
-
- # there are the complete list of .h files
- #
- H_SRC = ${CALC_H_SRC} ${LIB_H_SRC}
-
- %.o: %.c
- ${CC} ${CCFLAGS} $<
-
- all: calc
-
- calc: calc.lib ${CALCOBJS}
- ${LD} FROM LIB:c.o ${CALCOBJS} TO calc LIB calc.lib ${LNK_LIBS} ${LDFLAGS}
-
- calc.o: calc.c
- ${CC} ${CCFLAGS} calc.c
-
- calc.lib: ${LIBOBJS}
- oml calc.lib A ${LIBOBJS}
-
- check: calc lib/regress.cal lib/lucas.cal lib/lucas_chk.cal \
- lib/test1000.cal lib/surd.cal lib/cryrand.cal
- calc -q read regress
-
- clean:
- del ${LIBOBJS} ${CALCOBJS}
- cd help; ${MAKE} clean
- cd lib; ${MAKE} clean
-
- # make depend stuff
- #
- addop.o: addop.c
- addop.o: alloc.h
- addop.o: calc.h
- addop.o: cmath.h
- addop.o: endian.h
- addop.o: func.h
- addop.o: have_malloc.h
- addop.o: have_stdlib.h
- addop.o: have_string.h
- addop.o: label.h
- addop.o: longbits.h
- addop.o: opcodes.h
- addop.o: qmath.h
- addop.o: string.h
- addop.o: symbol.h
- addop.o: token.h
- addop.o: value.h
- addop.o: zmath.h
- alloc.o: alloc.c
- alloc.o: alloc.h
- alloc.o: have_malloc.h
- alloc.o: have_stdlib.h
- alloc.o: have_string.h
- assocfunc.o: alloc.h
- assocfunc.o: assocfunc.c
- assocfunc.o: cmath.h
- assocfunc.o: endian.h
- assocfunc.o: have_malloc.h
- assocfunc.o: have_stdlib.h
- assocfunc.o: have_string.h
- assocfunc.o: longbits.h
- assocfunc.o: qmath.h
- assocfunc.o: value.h
- assocfunc.o: zmath.h
- calc.o: alloc.h
- calc.o: calc.h
- calc.o: cmath.h
- calc.o: config.h
- calc.o: endian.h
- calc.o: func.h
- calc.o: have_malloc.h
- calc.o: have_stdlib.h
- calc.o: have_string.h
- calc.o: label.h
- calc.o: longbits.h
- calc.o: opcodes.h
- calc.o: qmath.h
- calc.o: symbol.h
- calc.o: token.h
- calc.o: value.h
- calc.o: zmath.h
- codegen.o: alloc.h
- codegen.o: calc.h
- codegen.o: cmath.h
- codegen.o: codegen.c
- codegen.o: config.h
- codegen.o: endian.h
- codegen.o: func.h
- codegen.o: have_malloc.h
- codegen.o: have_stdlib.h
- codegen.o: have_string.h
- codegen.o: label.h
- codegen.o: longbits.h
- codegen.o: opcodes.h
- codegen.o: qmath.h
- codegen.o: string.h
- codegen.o: symbol.h
- codegen.o: token.h
- codegen.o: value.h
- codegen.o: zmath.h
- comfunc.o: alloc.h
- comfunc.o: cmath.h
- comfunc.o: comfunc.c
- comfunc.o: endian.h
- comfunc.o: have_malloc.h
- comfunc.o: have_stdlib.h
- comfunc.o: have_string.h
- comfunc.o: longbits.h
- comfunc.o: qmath.h
- comfunc.o: zmath.h
- commath.o: alloc.h
- commath.o: cmath.h
- commath.o: commath.c
- commath.o: endian.h
- commath.o: have_malloc.h
- commath.o: have_stdlib.h
- commath.o: have_string.h
- commath.o: longbits.h
- commath.o: qmath.h
- commath.o: zmath.h
- config.o: alloc.h
- config.o: calc.h
- config.o: cmath.h
- config.o: config.c
- config.o: endian.h
- config.o: have_malloc.h
- config.o: have_stdlib.h
- config.o: have_string.h
- config.o: longbits.h
- config.o: qmath.h
- config.o: value.h
- config.o: zmath.h
- const.o: alloc.h
- const.o: calc.h
- const.o: cmath.h
- const.o: const.c
- const.o: endian.h
- const.o: have_malloc.h
- const.o: have_stdlib.h
- const.o: have_string.h
- const.o: longbits.h
- const.o: qmath.h
- const.o: value.h
- const.o: zmath.h
- file.o: alloc.h
- file.o: args.h
- file.o: calc.h
- file.o: cmath.h
- file.o: endian.h
- file.o: file.c
- file.o: have_malloc.h
- file.o: have_stdlib.h
- file.o: have_string.h
- file.o: longbits.h
- file.o: qmath.h
- file.o: stdarg.h
- file.o: value.h
- file.o: zmath.h
- func.o: alloc.h
- func.o: calc.h
- func.o: cmath.h
- func.o: endian.h
- func.o: func.c
- func.o: func.h
- func.o: have_malloc.h
- func.o: have_stdlib.h
- func.o: have_string.h
- func.o: label.h
- func.o: longbits.h
- func.o: opcodes.h
- func.o: qmath.h
- func.o: string.h
- func.o: symbol.h
- func.o: token.h
- func.o: value.h
- func.o: zmath.h
- input.o: alloc.h
- input.o: calc.h
- input.o: cmath.h
- input.o: config.h
- input.o: endian.h
- input.o: have_malloc.h
- input.o: have_stdlib.h
- input.o: have_string.h
- input.o: input.c
- input.o: longbits.h
- input.o: qmath.h
- input.o: value.h
- input.o: zmath.h
- label.o: alloc.h
- label.o: calc.h
- label.o: cmath.h
- label.o: endian.h
- label.o: func.h
- label.o: have_malloc.h
- label.o: have_stdlib.h
- label.o: have_string.h
- label.o: label.c
- label.o: label.h
- label.o: longbits.h
- label.o: opcodes.h
- label.o: qmath.h
- label.o: string.h
- label.o: token.h
- label.o: value.h
- label.o: zmath.h
- listfunc.o: alloc.h
- listfunc.o: cmath.h
- listfunc.o: endian.h
- listfunc.o: have_malloc.h
- listfunc.o: have_stdlib.h
- listfunc.o: have_string.h
- listfunc.o: listfunc.c
- listfunc.o: longbits.h
- listfunc.o: qmath.h
- listfunc.o: value.h
- listfunc.o: zmath.h
- matfunc.o: alloc.h
- matfunc.o: cmath.h
- matfunc.o: endian.h
- matfunc.o: have_malloc.h
- matfunc.o: have_stdlib.h
- matfunc.o: have_string.h
- matfunc.o: longbits.h
- matfunc.o: matfunc.c
- matfunc.o: qmath.h
- matfunc.o: value.h
- matfunc.o: zmath.h
- obj.o: alloc.h
- obj.o: calc.h
- obj.o: cmath.h
- obj.o: endian.h
- obj.o: func.h
- obj.o: have_malloc.h
- obj.o: have_stdlib.h
- obj.o: have_string.h
- obj.o: label.h
- obj.o: longbits.h
- obj.o: obj.c
- obj.o: opcodes.h
- obj.o: qmath.h
- obj.o: string.h
- obj.o: symbol.h
- obj.o: value.h
- obj.o: zmath.h
- opcodes.o: alloc.h
- opcodes.o: args.h
- opcodes.o: calc.h
- opcodes.o: cmath.h
- opcodes.o: endian.h
- opcodes.o: func.h
- opcodes.o: have_malloc.h
- opcodes.o: have_stdlib.h
- opcodes.o: have_string.h
- opcodes.o: label.h
- opcodes.o: longbits.h
- opcodes.o: opcodes.c
- opcodes.o: opcodes.h
- opcodes.o: qmath.h
- opcodes.o: stdarg.h
- opcodes.o: symbol.h
- opcodes.o: value.h
- opcodes.o: zmath.h
- qfunc.o: alloc.h
- qfunc.o: endian.h
- qfunc.o: have_malloc.h
- qfunc.o: have_stdlib.h
- qfunc.o: have_string.h
- qfunc.o: longbits.h
- qfunc.o: qfunc.c
- qfunc.o: qmath.h
- qfunc.o: zmath.h
- qio.o: alloc.h
- qio.o: args.h
- qio.o: endian.h
- qio.o: have_malloc.h
- qio.o: have_stdlib.h
- qio.o: have_string.h
- qio.o: longbits.h
- qio.o: qio.c
- qio.o: qmath.h
- qio.o: stdarg.h
- qio.o: zmath.h
- qmath.o: alloc.h
- qmath.o: endian.h
- qmath.o: have_malloc.h
- qmath.o: have_stdlib.h
- qmath.o: have_string.h
- qmath.o: longbits.h
- qmath.o: qmath.c
- qmath.o: qmath.h
- qmath.o: zmath.h
- qmod.o: alloc.h
- qmod.o: endian.h
- qmod.o: have_malloc.h
- qmod.o: have_stdlib.h
- qmod.o: have_string.h
- qmod.o: longbits.h
- qmod.o: qmath.h
- qmod.o: qmod.c
- qmod.o: zmath.h
- qtrans.o: alloc.h
- qtrans.o: endian.h
- qtrans.o: have_malloc.h
- qtrans.o: have_stdlib.h
- qtrans.o: have_string.h
- qtrans.o: longbits.h
- qtrans.o: qmath.h
- qtrans.o: qtrans.c
- qtrans.o: zmath.h
- string.o: alloc.h
- string.o: calc.h
- string.o: cmath.h
- string.o: endian.h
- string.o: have_malloc.h
- string.o: have_stdlib.h
- string.o: have_string.h
- string.o: longbits.h
- string.o: qmath.h
- string.o: string.c
- string.o: string.h
- string.o: value.h
- string.o: zmath.h
- symbol.o: alloc.h
- symbol.o: calc.h
- symbol.o: cmath.h
- symbol.o: endian.h
- symbol.o: func.h
- symbol.o: have_malloc.h
- symbol.o: have_stdlib.h
- symbol.o: have_string.h
- symbol.o: label.h
- symbol.o: longbits.h
- symbol.o: opcodes.h
- symbol.o: qmath.h
- symbol.o: string.h
- symbol.o: symbol.c
- symbol.o: symbol.h
- symbol.o: token.h
- symbol.o: value.h
- symbol.o: zmath.h
- token.o: alloc.h
- token.o: args.h
- token.o: calc.h
- token.o: cmath.h
- token.o: endian.h
- token.o: have_malloc.h
- token.o: have_stdlib.h
- token.o: have_string.h
- token.o: longbits.h
- token.o: qmath.h
- token.o: stdarg.h
- token.o: string.h
- token.o: token.c
- token.o: token.h
- token.o: value.h
- token.o: zmath.h
- value.o: alloc.h
- value.o: calc.h
- value.o: cmath.h
- value.o: endian.h
- value.o: func.h
- value.o: have_malloc.h
- value.o: have_stdlib.h
- value.o: have_string.h
- value.o: label.h
- value.o: longbits.h
- value.o: opcodes.h
- value.o: qmath.h
- value.o: string.h
- value.o: symbol.h
- value.o: value.c
- value.o: value.h
- value.o: zmath.h
- version.o: alloc.h
- version.o: calc.h
- version.o: cmath.h
- version.o: endian.h
- version.o: have_malloc.h
- version.o: have_stdlib.h
- version.o: have_string.h
- version.o: longbits.h
- version.o: qmath.h
- version.o: value.h
- version.o: version.c
- version.o: zmath.h
- zfunc.o: alloc.h
- zfunc.o: endian.h
- zfunc.o: have_malloc.h
- zfunc.o: have_stdlib.h
- zfunc.o: have_string.h
- zfunc.o: longbits.h
- zfunc.o: zfunc.c
- zfunc.o: zmath.h
- zio.o: alloc.h
- zio.o: args.h
- zio.o: endian.h
- zio.o: have_malloc.h
- zio.o: have_stdlib.h
- zio.o: have_string.h
- zio.o: longbits.h
- zio.o: stdarg.h
- zio.o: zio.c
- zio.o: zmath.h
- zmath.o: alloc.h
- zmath.o: endian.h
- zmath.o: have_malloc.h
- zmath.o: have_stdlib.h
- zmath.o: have_string.h
- zmath.o: longbits.h
- zmath.o: zmath.c
- zmath.o: zmath.h
- zmod.o: alloc.h
- zmod.o: endian.h
- zmod.o: have_malloc.h
- zmod.o: have_stdlib.h
- zmod.o: have_string.h
- zmod.o: longbits.h
- zmod.o: zmath.h
- zmod.o: zmod.c
- zmul.o: alloc.h
- zmul.o: endian.h
- zmul.o: have_malloc.h
- zmul.o: have_stdlib.h
- zmul.o: have_string.h
- zmul.o: longbits.h
- zmul.o: zmath.h
- zmul.o: zmul.c
-